<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class Group extends Model
{
    protected $table='groups';
    
    protected $primaryKey = 'id';
    
    protected $guided = ['id'];

    protected $dates = ['deleted_at'];

    public function users() {
        return $this->hasMany('App\Models\User','group_id','id');
    }
}